;
const dashboard_index_ops = {
    init: function () {
        this.drawChart()
    },
    drawChart: function () {
        $.ajax({
            url: common_ops.buildUrl('/chart/dashboard'),
            dataType: 'json',
            success: function (res) {
                if (res.code === 200) {
                    charts_ops.drawLine($("#member_order"), res.data);
                }
            }
        })
        $.ajax({
            url: common_ops.buildUrl('/chart/finance'),
            dataType: 'json',
            success: function (res) {
                if (res.code === 200) {
                    charts_ops.drawLine($("#finance"), res.data);
                }
            }
        })
    }
};

$(document).ready(function () {
    dashboard_index_ops.init();
});
